package com.finance.cooperate.dao.entity.secondary;

import com.finance.cooperate.dao.support.pojo.BaseVO;
import lombok.Data;

import javax.persistence.*;

/**
 * @ClassName StrategyHitDetails
 * @Description 策略命中结果表
 * @Author shenanxin
 * @Date 2023/8/23 14:33
 * @Modify ...
 */
@Entity
@Table(name = "rc_strategy_hit_details")
@Data
public class StrategyHitDetails extends BaseVO {

    private static final long serialVersionUID = 1708122911777812657L;

    //自增Id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    // 流水ID
    @Column(name = "record_id")
    private String recordId;

    // 用户Id
    @Column(name = "uid")
    private String uid;

    // 策略ID
    @Column(name = "strategy_id")
    private Long strategyId;

    // 初始分
    @Column(name = "initial_score")
    private Double initialScore;

    // 最终分
    @Column(name = "final_score")
    private Double finalScore;

    // 结果详情
    @Lob
    @Column(name = "data", columnDefinition = "TEXT")
    private String data;

    //创建时间
    @Column(name = "created")
    private Long created;


}
